[INFO] cloning repository https://github.com/wbprime/rust-by-example
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wbprime/rust-by-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwbprime%2Frust-by-example", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwbprime%2Frust-by-example'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5e185bd9cf58eb410477a64e63ea48d297f993ff
[INFO] checking wbprime/rust-by-example against master#82310651b93a594a3fd69015e1562186a080d94c for pr-145770
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwbprime%2Frust-by-example" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/wbprime/rust-by-example
[INFO] finished tweaking git repo https://github.com/wbprime/rust-by-example
[INFO] tweaked toml for git repo https://github.com/wbprime/rust-by-example written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/wbprime/rust-by-example on toolchain 82310651b93a594a3fd69015e1562186a080d94c
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/wbprime/rust-by-example already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 62959bbcc292337033c715a869f278531dc4c338fec2ce06a55832bbd443abe5
[INFO] running `Command { std: "docker" "start" "-a" "62959bbcc292337033c715a869f278531dc4c338fec2ce06a55832bbd443abe5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "62959bbcc292337033c715a869f278531dc4c338fec2ce06a55832bbd443abe5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "62959bbcc292337033c715a869f278531dc4c338fec2ce06a55832bbd443abe5", kill_on_drop: false }`
[INFO] [stdout] 62959bbcc292337033c715a869f278531dc4c338fec2ce06a55832bbd443abe5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2f3d5dd1dae5eb1aac9cad6f417ad48efdf0e8e592b336e3db8eb49efe4a94ed
[INFO] running `Command { std: "docker" "start" "-a" "2f3d5dd1dae5eb1aac9cad6f417ad48efdf0e8e592b336e3db8eb49efe4a94ed", kill_on_drop: false }`
[INFO] [stderr]     Checking rust-by-example v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/bin/flow_control.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout] 33 |         if (each_i % 2 == 0) {
[INFO] [stdout]    |            ^               ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 33 -         if (each_i % 2 == 0) {
[INFO] [stdout] 33 +         if each_i % 2 == 0 {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/bin/display_print.rs:41:16
[INFO] [stdout]    |
[INFO] [stdout] 41 |             if (i != 0) {
[INFO] [stdout]    |                ^      ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 41 -             if (i != 0) {
[INFO] [stdout] 41 +             if i != 0 {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/bin/debug_print.rs:2:22
[INFO] [stdout]   |
[INFO] [stdout] 2 | struct DebugPritable(i32);
[INFO] [stdout]   |        ------------- ^^^
[INFO] [stdout]   |        |
[INFO] [stdout]   |        field in this struct
[INFO] [stdout]   |
[INFO] [stdout]   = help: consider removing this field
[INFO] [stdout]   = note: `DebugPritable` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `name` and `age` are never read
[INFO] [stdout]  --> src/bin/debug_print.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | struct DebugPerson<'a> {
[INFO] [stdout]   |        ----------- fields in this struct
[INFO] [stdout] 6 |     name: &'a str,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout] 7 |     age: u8,
[INFO] [stdout]   |     ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `DebugPerson` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `onWebEvent` should have a snake case name
[INFO] [stdout]  --> src/bin/enums.rs:9:4
[INFO] [stdout]   |
[INFO] [stdout] 9 | fn onWebEvent(e: WebEvent) {
[INFO] [stdout]   |    ^^^^^^^^^^ help: convert the identifier to snake case: `on_web_event`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]  --> src/bin/match.rs:6:10
[INFO] [stdout]   |
[INFO] [stdout] 6 |         7...10 => 2,
[INFO] [stdout]   |          ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]   |
[INFO] [stdout]   = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]   = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `onWebEvent` should have a snake case name
[INFO] [stdout]  --> src/bin/enums.rs:9:4
[INFO] [stdout]   |
[INFO] [stdout] 9 | fn onWebEvent(e: WebEvent) {
[INFO] [stdout]   |    ^^^^^^^^^^ help: convert the identifier to snake case: `on_web_event`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/bin/flow_control.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout] 33 |         if (each_i % 2 == 0) {
[INFO] [stdout]    |            ^               ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 33 -         if (each_i % 2 == 0) {
[INFO] [stdout] 33 +         if each_i % 2 == 0 {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/bin/display_print.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |         write!(f, "[");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 36 |         let _ = write!(f, "[");
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/bin/display_print.rs:42:17
[INFO] [stdout]    |
[INFO] [stdout] 42 |                 write!(f, ", ");
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 42 |                 let _ = write!(f, ", ");
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/bin/display_print.rs:45:13
[INFO] [stdout]    |
[INFO] [stdout] 45 |             write!(f, "[{}] => {}", i, v);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 45 |             let _ = write!(f, "[{}] => {}", i, v);
[INFO] [stdout]    |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]  --> src/bin/match.rs:6:10
[INFO] [stdout]   |
[INFO] [stdout] 6 |         7...10 => 2,
[INFO] [stdout]   |          ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]   |
[INFO] [stdout]   = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]   = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]   = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Nil` is never constructed
[INFO] [stdout]  --> src/bin/struct.rs:1:8
[INFO] [stdout]   |
[INFO] [stdout] 1 | struct Nil;
[INFO] [stdout]   |        ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Pair` is never constructed
[INFO] [stdout]  --> src/bin/struct.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 | struct Pair(i32, i64);
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Nil` is never constructed
[INFO] [stdout]  --> src/bin/struct.rs:1:8
[INFO] [stdout]   |
[INFO] [stdout] 1 | struct Nil;
[INFO] [stdout]   |        ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Pair` is never constructed
[INFO] [stdout]  --> src/bin/struct.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 | struct Pair(i32, i64);
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/bin/display_print.rs:41:16
[INFO] [stdout]    |
[INFO] [stdout] 41 |             if (i != 0) {
[INFO] [stdout]    |                ^      ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 41 -             if (i != 0) {
[INFO] [stdout] 41 +             if i != 0 {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/bin/debug_print.rs:2:22
[INFO] [stdout]   |
[INFO] [stdout] 2 | struct DebugPritable(i32);
[INFO] [stdout]   |        ------------- ^^^
[INFO] [stdout]   |        |
[INFO] [stdout]   |        field in this struct
[INFO] [stdout]   |
[INFO] [stdout]   = help: consider removing this field
[INFO] [stdout]   = note: `DebugPritable` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `name` and `age` are never read
[INFO] [stdout]  --> src/bin/debug_print.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | struct DebugPerson<'a> {
[INFO] [stdout]   |        ----------- fields in this struct
[INFO] [stdout] 6 |     name: &'a str,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout] 7 |     age: u8,
[INFO] [stdout]   |     ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `DebugPerson` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/bin/display_print.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |         write!(f, "[");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 36 |         let _ = write!(f, "[");
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/bin/display_print.rs:42:17
[INFO] [stdout]    |
[INFO] [stdout] 42 |                 write!(f, ", ");
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 42 |                 let _ = write!(f, ", ");
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/bin/display_print.rs:45:13
[INFO] [stdout]    |
[INFO] [stdout] 45 |             write!(f, "[{}] => {}", i, v);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 45 |             let _ = write!(f, "[{}] => {}", i, v);
[INFO] [stdout]    |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.57s
[INFO] running `Command { std: "docker" "inspect" "2f3d5dd1dae5eb1aac9cad6f417ad48efdf0e8e592b336e3db8eb49efe4a94ed", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2f3d5dd1dae5eb1aac9cad6f417ad48efdf0e8e592b336e3db8eb49efe4a94ed", kill_on_drop: false }`
[INFO] [stdout] 2f3d5dd1dae5eb1aac9cad6f417ad48efdf0e8e592b336e3db8eb49efe4a94ed
